import request from '@/utils/request'

export function getBlogListApi(params) {
  return request({
    url: '/api/v1/getBlogList',
    method: 'get',
    params
  })
}

export function addBlogApI(data) {
  return request({
    url: '/api/v1/insertBlog',
    method: 'post',
    data
  })
}

export function updateBlogApI(data) {
  return request({
    url: '/api/v1/updateBlog',
    method: 'post',
    data
  })
}

export function deleteBlogApI(params) {
  return request({
    url: '/api/v1/deleteBlog',
    method: 'get',
    params
  })
}
